package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._0._1继承;

/**
 * @ClassName Dog
 * @Description TODO
 * @Author zero
 * @DATE 2023/7/9 7:16 PM
 * @Version 1.0
 */
public class Dog extends Animal{
    @Override
    public String shout(){
        String result = "";
        for (int i = 0; i < this.shoutNum; i++) {
            result += "汪";
        }
        return "我的名字叫" + name + " " + result;
    }
}
